package com.paas.form.core.element.control.impl.searchItem;

import com.paas.form.core.element.control.FormItem;
import com.paas.form.core.element.field.FieLdsModel;
import com.paas.form.core.element.jsContent.ScriptContent;
import lombok.Data;


@Data
public class GroupSelect implements FormItem {
    private FieLdsModel field;
    private String htmlType;
    public static final String GROUP_SELECT ="<groupSelect v-model=\"${formObject}.${field.vModel}\" placeholder=\"请选择${field.config.label}\" clearable\n" +
            "                class=\"item\" :multiple=\"${field.multiple}\" />";

    public GroupSelect(FieLdsModel field, String htmlType){
        this.field = field;
        this.htmlType = htmlType;

    }


    @Override
    public String makeVue() {
        return GROUP_SELECT;
    }

    @Override
    public ScriptContent makeJs() {
        return null;
    }
}
